package cn.jiyun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello(Model model){
    model.addAttribute("username","tom");
    model.addAttribute("msg","321321321321321xcvjhbknlm;");
    model.addAttribute("birth",new Date());
        return "hello";
    }
}
